<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>订单详情</title>
<jsp:include page="addOrderDetail.jsp"></jsp:include>
<script src="../../js/jquery-1.9.1.js"></script>
<script src="../../js/bootstrap.min.js"></script>
<script src="../../js/jqPaginator.js"></script>
<script src="../orderDetail/orderDetail.js"></script>

<!-- Bootstrap -->

<link href="../../css/bootstrap.min.css" rel="stylesheet" />
<link href="../orderDetail/orderDetail.css" rel="stylesheet" />


<style>
.alllists {
	width: 100%;
}

.buttonSt {
	text-align: right;
}
</style>
</head>
<body>
	<div class="container-fluid alllists">
		<div class="row-fluid">
			<div class="span12">
			<button class="btn btn-primary btn-large" type="button"
						data-toggle="modal" onclick="history.go(-1);">返回上一级</button>
				<div id="tools" class="buttonSt">
					<button id="addOrderDetail" class="btn btn-primary btn-large"
						type="button" data-toggle="modal">添加</button>
					<button id="deleteBtn" class="btn btn-large btn-danger"
						type="button">删除</button>
				</div>
				<div>
					<table id="orderDetailList" class="table table-bordered table-hover">
						<thead>
							<tr>
								<td><input id="selectAll" class="checkbox" type="checkbox" /></td>
								<th>订单ID</th>
								<th>礼品ID</th>
								<th>礼品名称</th>
								<th>单价</th>
								<th>数量</th>
								<th>总价</th>
								<th>录入人</th>
								<th>录入时间</th>
								<th>确认人</th>
								<th>确认时间</th>
								<th>最后修改时间</th>
								<th>最后修改人</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody>
							<c:forEach var="orderDetail" items="${pageResult.resultList}">
								<tr>
									<td><input name="id" id="orderDetailId" class="checkbox"
										type="checkbox" value="${order.id}" /></td>
									<td>${orderDetail.orderId}</td>
									<td>${orderDetail.giftId}</td>
									<td>${orderDetail.giftName}</td>
									<td>${orderDetail.salePrice}</td>
									<td>${orderDetail.total}</td>
									<td>${orderDetail.summery}</td>
									<td>${orderDetail.creator}</td>
									<td>${orderDetail.createTime}</td>
									<td>${orderDetail.confirmer}</td>
									<td>${orderDetail.confirmTime}</td>
									<td>${orderDetail.editTime}</td>
									<td>${orderDetail.editor}</td>
									<td><button name="editBtn" objId="${orderDetail.id}"
											class="btn btn-sm-block btn-sm-info">修改</button></td>
								</tr>
							</c:forEach>
						<tbody>
					</table>
				</div>
			</div>
		</div>
	</div>
	<div style="text-align: center;">
		<ul class="pagination" id="pagination2"></ul>
	</div>
	<div style="text-align: center;">
		<div id="pageResult">
			<input id="pageCount" type="hidden" value="${pageResult.pageCount}" />
			<input id="totalCount" type="hidden" value="${pageResult.totalCount}" />
			<input id="pageIndex" type="hidden" value="${pageResult.pageIndex}" />
			<input id="pageSize" type="hidden" value="${pageResult.pageSize}" />
		</div>
		<!-- footer -->

		<p>vinace-Demo by 御风林海</p>

	</div>




</body>
</html>